<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<x:parse xml="${param.xmlstr}" var="xmlData" />
<input type="hidden" name="zh_parsen/fzr_name" value="<x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/zh_name"/>"/>
<input type="hidden" name="zh_parsen/fzr_mobile" value="<x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/mobile"/>"/>
<input type="hidden" name="zh_parsen/fzr_tel" value="<x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/tel_work"/>"/>
<input type="hidden" name="zh_parsen/fzr_email" value="<x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/email"/>"/>
<div class="t_bar"><span class="color_red">*</span>项目基本情况</div>
	<table class="t_css" width="100%" border="0" cellpadding="0" cellspacing="1">
	<col style="width: 25%"/>
	<col style="width: 25%"/>
	<col style="width: 25%"/>
	<col style="width: 25%"/>
	
	    <tr>
	        <td align="right">项目名称：</td>
	        <td colspan="3">
	        	<input type='text' name='proposal/zh_title' id='zh_title' style="width: 87.5%" class="input_css required" maxlength="100" value='<x:out select="$xmlData/data/proposal/zh_title"/>' label="项目名称">
	        </td>
	    </tr>
	    <tr>
            <td align="right">众创空间名称：</td>
            <td colspan="3">
                <input type='text' name='proposal/creative_space_name' style="width: 87.5%" class="input_css required" maxlength="100" value='<x:out select="$xmlData/data/proposal/creative_space_name"/>' label="众创空间名称">
            </td>
        </tr>
        <tr>
            <td align="right">运营主体名称：</td>
            <td colspan="3">
                <input type='text' name='proposal/operation_subject_name' style="width: 87.5%" class="input_css required" maxlength="100" value='<x:out select="$xmlData/data/proposal/operation_subject_name"/>' label="运营主体名称">（盖章）
            </td>
        </tr>
	    <tr>
            <td align="right">注册地址：</td>
            <td colspan="3" align="left">
                <input type='text' name='proposal/register_address' style="width: 87.5%" class="input_css required" maxlength="100" value='<x:out select="$xmlData/data/proposal/register_address"/>' label="注册地址">
            </td>
        </tr>
	    <tr>
            <td align="right">运营主体性质：</td>
            <td colspan="3" align="left">
                <c:set var="operation_subject_natures"><x:out select="$xmlData/data/proposal/operation_subject_nature_value" /></c:set> 
                <cpt:checkbox key="operation_subject_natures" style="float:left;width:15px;" name="operation_subject_nature" width="70px" repeatColumn="4" value="${operation_subject_natures }"  tagType="radio" ></cpt:checkbox>
                <input type="hidden" id="operation_subject_nature_value" name="proposal/operation_subject_nature_value" class="required" value="${operation_subject_natures }" label="运营主体性质"> 
                <input type="hidden" id="operation_subject_nature_name" name="proposal/operation_subject_nature_name" value="<x:out select="$xmlData/data/proposal/operation_subject_nature_name" />">
                <!-- 其他的值 -->
                <input type="hidden" id="operation_subject_nature_other" name="proposal/operation_subject_nature_other" label="运营主体性质-->其他" value="<x:out select="$xmlData/data/proposal/operation_subject_nature_other" />"/>
            </td>
        </tr>
        <tr>
            <td align="right">机构类型：</td>
            <td colspan="3" align="left">
                <c:set var="institutional_types"><x:out select="$xmlData/data/proposal/institutional_type_value" /></c:set> 
                <cpt:checkbox key="institutional_types" name="institutional_type"  width="70px" repeatColumn="2" value="${institutional_types }"  tagType="radio" ></cpt:checkbox>
                <input type="hidden" id="institutional_type_value" name="proposal/institutional_type_value" class="required" value="${institutional_types }" label="机构类型"> 
                <input type="hidden" id="institutional_type_name" name="proposal/institutional_type_name" value="<x:out select="$xmlData/data/proposal/institutional_type_name" />">
                <!-- 领域的值 -->
                <input type="hidden" label="机构类型-->专业性-->领域" name="proposal/institutional_type_other" id="institutional_type_other" value="<x:out select="$xmlData/data/proposal/institutional_type_other" />"/>
            </td>
        </tr>
	    <tr>
	        <td align="right">归口管理部门：</td>
            <td>
                <c:set var="recomend_org">{'id':'<x:out select="$xmlData/data/proposal/recomend_org_value" />','name':'<x:out select="$xmlData/data/proposal/recomend_org_name" />'}</c:set>
                <cpt:tree key="recommended_org" cacheable="false" className="hn_iuput_kuang " readonly="true" value="${recomend_org}"  label="归口管理部门"
                    id="recomend_org" onlyChooseLeaf="false"  showPattern="all" shieldPattern="0" topCheckbox="true" onClick="initTreeValueExt" />
                <input type="hidden" id="recomend_org_value" name="proposal/recomend_org_value"  class="required"  value="<x:out select="$xmlData/data/proposal/recomend_org_value" />" label="归口管理部门">
                <input type="hidden" name="proposal/recomend_org_name" value="<x:out select="$xmlData/data/proposal/recomend_org_name" />">
            </td>
            <td align="right">申请日期：</td>
            <td>
               <c:set var="apply_time"><x:out select="$xmlData/data/proposal/apply_time" /></c:set>
               <cpt:date name="proposal/apply_time" value="${apply_time}" id="apply_time" className="required date" label="申请日期"></cpt:date> 
            </td>
	    </tr>
	    <tr>
	       <td align="right">注册时间：</td>
	       <td>
	           <c:set var="registe_date"><x:out select="$xmlData/data/organizations/organization/registe_date" /></c:set>
	           <input type="text" class="input_text gray" readonly="readonly" value="${registe_date }"/>
	           <input type="hidden" name="proposal/registe_date" value="${registe_date }">
	       </td>
	       <td align="right">开始运营时间：</td>
           <td>
               <c:set var="start_operation_time"><x:out select="$xmlData/data/proposal/start_operation_time" /></c:set>
               <cpt:date name="proposal/start_operation_time" value="${start_operation_time}" id="start_operation_time" className="required date" label="开始运营时间"></cpt:date>
           </td>
	    </tr>
	    <tr>
	       <td align="right">注册资本：</td>
	       <td>
	           <c:set var="registe_fund"><x:out select="$xmlData/data/org_basic_info/registe_fund" /></c:set>
	           <input class="input_text gray" readonly="readonly" style="text-align: right" value="${registe_fund }"/>
	           <input type="hidden" name="proposal/registe_fund" value="${registe_fund }">
	       </td>
	       <td align="right">注册地址：</td>
	       <td>
	           <input class="input_text gray" readonly="readonly" value="<x:out select="$xmlData/data/organizations/organization/area_name" />"/>
	       </td>
	    </tr>
	    <tr>
	       <td align="right">联系人姓名：</td>
	       <td>
	           <input  type="text" label="联系人姓名" name="proposal/person_contact_name" class="input_css required" maxlength="50" value="<x:out select="$xmlData/data/proposal/person_contact_name" />">
                <span name="proposal/contact_email" style="display: none;"> 
                    <x:out select="$xmlData/data/organization_persons/organization_person[@psn_type='lianxiren']/contact_email"/>
                </span>
                <span name="proposal/contact_tel" style="display: none;"> 
                    <x:out select="$xmlData/data/organization_persons/organization_person[@psn_type='lianxiren']/contact_tel"/>
                </span>
	       </td>
	       <td align="right">联系人手机：</td>
	       <td>
	           <input type="text" label="联系人手机" name="proposal/person_contact_mobile" class="input_css required mobile" onfocus="InitInput.setNumber(this,11,0,0)" value="<x:out select="$xmlData/data/proposal/person_contact_mobile" />">
	       </td>
	    </tr>
	    <tr>
           <td align="right">项目报审级次：<br>（省补助资金拨付所属财政局）</td>
           <td>
               <c:set var="sub_step">{'id':'<x:out select="$xmlData/data/proposal/sub_step_value" />','name':'<x:out select="$xmlData/data/proposal/sub_step_name" />'}</c:set>
                <cpt:tree key="sub_step" cacheable="false" className="hn_iuput_kuang  gray" readonly="true" value="${sub_step}"  label="项目报审级次" 
                    id="sub_step" onlyChooseLeaf="false" showPattern="all" shieldPattern="0" topCheckbox="true" onClick="initTreeValueExt" />
                <input id="sub_step_value" type="hidden" name="proposal/sub_step_value" class="required" label="项目报审级次" value="<x:out select="$xmlData/data/proposal/sub_step_value" />"/>
                <input id="sub_step_name" type="hidden" name="proposal/sub_step_name"  value="<x:out select="$xmlData/data/proposal/sub_step_name" />"/>
           </td>
           <td align="right">项目申请金额（万元）：</td>
           <td>
               <input class="input:css required" label="项目申请金额" name="proposal/request_amt" onfocus="InitInput.setNumber(this,9,2,2)" style="text-align: right;" value="<x:out select="$xmlData/data/proposal/request_amt" />"/>
           </td>
        </tr>
	    <tr>
           <td align="right">管理服务团队人数（人）：</td>
           <td>
               <input class="input:css required" label="管理服务团队人数" name="proposal/manage_service_team_numbers" onfocus="InitInput.setNumber(this,9,0,0)" style="text-align: right;" value="<x:out select="$xmlData/data/proposal/manage_service_team_numbers" />"/>
           </td>
           <td align="right">管理服务团队大专以上学历人数（人）：</td>
           <td>
               <input class="input:css required" label="管理服务团队大专以上学历人数" name="proposal/manage_service_team_college_degree_numbers" onfocus="InitInput.setNumber(this,9,0,0)" style="text-align: right;" value="<x:out select="$xmlData/data/proposal/manage_service_team_college_degree_numbers" />"/>
           </td>
        </tr>
	    <tr>
           <td align="right">管理服务团队取得从业人员资格证书人数（人）：</td>
           <td>
               <input class="input:css required" label="管理服务团队取得从业人员资格证书人数" name="proposal/manage_service_team_get_certificate_numbers" onfocus="InitInput.setNumber(this,9,0,0)" style="text-align: right;" value="<x:out select="$xmlData/data/proposal/manage_service_team_get_certificate_numbers" />"/>
           </td>
           <td align="right">创业导师人数（人）：</td>
           <td>
               <input class="input:css required" label="创业导师人数" name="proposal/business_mentors_numbers" onfocus="InitInput.setNumber(this,9,0,0)" style="text-align: right;" value="<x:out select="$xmlData/data/proposal/business_mentors_numbers" />"/>
           </td>
        </tr>
        <tr>
           <td align="right">入驻初创企业总数：</td>
           <td>
               <input class="input:css required" label="入驻初创企业总数" name="proposal/settled_start_ups_numbers" onfocus="InitInput.setNumber(this,9,0,0)" style="text-align: right;" value="<x:out select="$xmlData/data/proposal/settled_start_ups_numbers" />"/>
           </td>
           <td align="right">当年新入驻初创企业数：</td>
           <td>
               <input class="input:css required" label="当年新入驻初创企业数" name="proposal/that_year_settled_start_ups_numbers" onfocus="InitInput.setNumber(this,9,0,0)" style="text-align: right;" value="<x:out select="$xmlData/data/proposal/that_year_settled_start_ups_numbers" />"/>
           </td>
        </tr>
        <tr>
           <td align="right">入驻创业团队总数：</td>
           <td>
               <input class="input:css required" label="入驻创业团队总数" name="proposal/entrepreneurial_team_numbers" onfocus="InitInput.setNumber(this,9,0,0)" style="text-align: right;" value="<x:out select="$xmlData/data/proposal/entrepreneurial_team_numbers" />"/>
           </td>
           <td align="right">当年新入驻创业团队数：</td>
           <td>
               <input class="input:css required" label="当年新入驻创业团队数" name="proposal/that_year_entrepreneurial_team_numbers" onfocus="InitInput.setNumber(this,9,0,0)" style="text-align: right;" value="<x:out select="$xmlData/data/proposal/that_year_entrepreneurial_team_numbers" />"/>
           </td>
        </tr>
        <tr>
           <td align="right">当年入驻创业团队注册企业数：</td>
           <td>
               <input class="input:css required" label="当年入驻创业团队注册企业数" name="proposal/that_year_entrepreneurial_team_register_numbers" onfocus="InitInput.setNumber(this,9,0,0)" style="text-align: right;" value="<x:out select="$xmlData/data/proposal/that_year_entrepreneurial_team_register_numbers" />"/>
           </td>
           <td align="right">当年毕业企业数：</td>
           <td>
               <input class="input:css required" label="当年毕业企业数" name="proposal/that_year_graduation_enterprise_numbers" onfocus="InitInput.setNumber(this,9,0,0)" style="text-align: right;" value="<x:out select="$xmlData/data/proposal/that_year_graduation_enterprise_numbers" />"/>
           </td>
        </tr>
        <tr>
            <td align="right">办公场所及配套设施：<br>（可自主支配面积、工位数、办公设备、互联网资源等，限5000字）</td>
            <td colspan="3">
                <textarea name="proposal/office_space_and_facilities" class="input_textarea required maxlength:5000" style="resize:none; width:600px; height:200px" label="办公场所及配套设施"><x:out select="$xmlData/data/proposal/office_space_and_facilities" /></textarea>
                <input type="hidden" name="proposal/office_space_and_facilities_hidden" value="<x:out select="$xmlData/data/proposal/office_space_and_facilities_hidden" />" />
            </td>
        </tr>
        <tr>
            <td align="right">管理制度建立情况：<br>（对创业者（团队）评估、筛选、毕业/退出等方面的制度、办法等，限5000字）</td>
            <td colspan="3">
                <textarea name="proposal/establishment_management_system" class="input_textarea required maxlength:5000" style="resize:none; width:600px; height:200px" label="管理制度建立情况"><x:out select="$xmlData/data/proposal/establishment_management_system" /></textarea>
                <input type="hidden" name="proposal/establishment_management_system_hidden" value="<x:out select="$xmlData/data/proposal/establishment_management_system_hidden" />" />
            </td>
        </tr>
        <tr>
            <td align="right">创业投融资情况：<br>（与哪些金融投资机构合作，当年多少项目获得融资，金额多少，限5000字）</td>
            <td colspan="3">
                <textarea name="proposal/venture_investment_and_financing" class="input_textarea required maxlength:5000" style="resize:none; width:600px; height:200px" label="创业投融资情况"><x:out select="$xmlData/data/proposal/venture_investment_and_financing" /></textarea>
                <input type="hidden" name="proposal/venture_investment_and_financing_hidden" value="<x:out select="$xmlData/data/proposal/venture_investment_and_financing_hidden" />" />
            </td>
        </tr>
        <tr>
            <td align="right">自有种子资金使用情况：<br>（资金总数，当年使用了多少，支持了多少企业和团队，限5000字）</td>
            <td colspan="3">
                <textarea name="proposal/use_of_seed_money" class="input_textarea required maxlength:5000" style="resize:none; width:600px; height:200px" label="自有种子资金使用情况"><x:out select="$xmlData/data/proposal/use_of_seed_money" /></textarea>
                <input type="hidden" name="proposal/use_of_seed_money_hidden" value="<x:out select="$xmlData/data/proposal/use_of_seed_money_hidden" />" />
            </td>
        </tr>
        <tr>
            <td align="right">创业导师辅导情况：<br>（建立了怎样的导师制度，当年开展了多少次什么类型的辅导，限5000字）</td>
            <td colspan="3">
                <textarea name="proposal/tutorial_guidance" class="input_textarea required maxlength:5000" style="resize:none; width:600px; height:200px" label="创业导师辅导情况"><x:out select="$xmlData/data/proposal/tutorial_guidance" /></textarea>
                <input type="hidden" name="proposal/tutorial_guidance_hidden" value="<x:out select="$xmlData/data/proposal/tutorial_guidance_hidden" />" />
            </td>
        </tr>
        <tr>
            <td align="right">提供技术创新服务情况：<br>（包括当年开展技术培训、政策咨询、检验检测、人才引进、成果转化等，限5000字）</td>
            <td colspan="3">
                <textarea name="proposal/provide_technical_innovation_services" class="input_textarea required maxlength:5000" style="resize:none;width:600px; height:200px" label="提供技术创新服务情况"><x:out select="$xmlData/data/proposal/provide_technical_innovation_services" /></textarea>
                <input type="hidden" name="proposal/provide_technical_innovation_services_hidden" value="<x:out select="$xmlData/data/proposal/provide_technical_innovation_services_hidden" />" />
            </td>
        </tr>
        <tr>
            <td align="right">当年开展创业培训活动情况：</td>
            <td colspan="3">
                <p>
                    1、创业沙龙活动：<input class="required survey" name="proposal/salon_activities_numbers" label="当年开展创业培训活动情况-->创业沙龙活动场次" onfocus="InitInput.setNumber(this,9,0,0)" value="<x:out select="$xmlData/data/proposal/salon_activities_numbers" />"/>场次、
                               <input class="required survey" name="proposal/salon_activities_people_numbers" label="当年开展创业培训活动情况-->创业沙龙活动人数" onfocus="InitInput.setNumber(this,9,0,0)" value="<x:out select="$xmlData/data/proposal/salon_activities_people_numbers" />"/>人数。
                </p>
                <p>
                    2、创业培训（训练营）：<input class="required survey" name="proposal/entrepreneurship_training_numbers" label="当年开展创业培训活动情况-->创业培训（训练营）场次" onfocus="InitInput.setNumber(this,9,0,0)" value="<x:out select="$xmlData/data/proposal/entrepreneurship_training_numbers" />"/>场次、
                                  <input class="required survey" name="proposal/entrepreneurship_training_people_numbers" label="当年开展创业培训活动情况-->创业培训（训练营）人数" onfocus="InitInput.setNumber(this,9,0,0)" value="<x:out select="$xmlData/data/proposal/entrepreneurship_training_people_numbers" />"/>人数。
                </p>
                <p>
                    3、项目路演次数：<input class="required survey" name="proposal/project_roadshow_numbers" label="当年开展创业培训活动情况-->项目路演次数场次" onfocus="InitInput.setNumber(this,9,0,0)" value="<x:out select="$xmlData/data/proposal/project_roadshow_numbers" />"/>场次、
                               <input class="required survey" name="proposal/project_roadshow_people_numbers" label="当年开展创业培训活动情况-->项目路演次数人数" onfocus="InitInput.setNumber(this,9,0,0)" value="<x:out select="$xmlData/data/proposal/project_roadshow_people_numbers" />"/>人数。
                </p>
            </td>
        </tr>
	</table>
	<br>
	
<script type="text/javascript">
//文本框只显示下边框
$(".survey").css({
	"border":"none",
	"border-bottom":"1px solid black",
	"text-align":"right",
	"width":30
});

//创建节点
var operation_subject4 = '<span><input type="text" label="其他" id="radio4" style="height: 17px;width: 70px;border: none;border-bottom: 1px solid gray;" maxlength="10" class="required" value="" onblur="setValByRadio4();" /></span>';
var institutional_type2 = '<span>&nbsp;领域（请注明）：<input type="text" label="领域" id="radio2" style="height: 17px;border: none;border-bottom: 1px solid gray;" maxlength="10" class="required" value="" onblur="setValByRadio2();"/></span>';

//初始化radio  operation_subject_nature_other
if($('input:radio[name="operation_subject_nature"]:checked').val()==4){
	$("input[name='operation_subject_nature']").parent().parent().parent().find('td').last('label').append(operation_subject4);
	var radio4_hidden = $("#operation_subject_nature_other").val();
	$("#radio4").val(radio4_hidden);
	$("#operation_subject_nature_other").addClass("required");
}

//初始化radio  institutional_type_other
if($('input:radio[name="institutional_type"]:checked').val()==2){
    $("input[name='institutional_type']").parent().parent().parent().find('td').last('label').append(institutional_type2);
    var radio2_hidden = $("#institutional_type_other").val();
    $("#radio2").val(radio2_hidden);
    $("#institutional_type_other").addClass("required");
}

//对radio须注明选项的值进行复制
function setValByRadio2(){
	var radio2 = $("#radio2").val();
    $("#institutional_type_other").val(radio2);
}

//对radio须注明选项的值进行复制
function setValByRadio4(){
    var radio4 = $("#radio4").val();
    $("#operation_subject_nature_other").val(radio4);
}

//当运营主体性质被选中，则显示输入框
$("input[name='operation_subject_nature']").click(function(){
    var val=$('input:radio[name="operation_subject_nature"]:checked').val();
    if(val==4){
        if($(this).parent().parent().parent().find('span').length<=0){
            $(this).parent().parent().parent().find('td').last('label').append(operation_subject4);
            $("#operation_subject_nature_other").addClass("required");
        }
    } else{
    	$("#operation_subject_nature_other").removeClass("required");
    	$(this).parent().parent().parent().find('span').remove();
    }
});

//当机构类型专业性被选中，则显示输入框
$("input[name='institutional_type']").click(function(){
	var val=$('input:radio[name="institutional_type"]:checked').val();
	if(val==2){
		if($(this).parent().parent().parent().find('span').length<=0){
			$(this).parent().parent().parent().find('td').last('label').append(institutional_type2);
			$("#institutional_type_other").addClass("required");
		}
	} else{
		$("#institutional_type_other").removeClass("required");
		$(this).parent().parent().parent().find('span').remove();
	}
});

function initTreeValueExt(treeId, treeNode) {
 	if ((treeNode && treeNode.isParent)) {
 		scmWarn("请选择具体的" + $("#" + treeId).attr("label"));
 		$("#" + treeId).val("");
 		$("#" + treeId).parents("td").find("[name$='" + treeId + "_code'],[id$='" + treeId + "_code']").val("");
 		$("#" + treeId).parents("td").find("[name$='" + treeId + "_value'],[id$='" + treeId	+ "_value']").val("");
 		$("#" + treeId).parents("td").find("[name$='" + treeId + "_name'],[id$='" + treeId + "_name']").val("");
 		return false;
 	}
 	var str = treeNode.name;
 	var obj = treeNode.parentNode;
 	while (obj != null) {
 		str = obj.name + "-" + str;
 		obj = obj.parentNode;
 	}
 	
 	$("#" + treeId).parents("td").find("[name$='" + treeId + "_code'],[id$='" + treeId + "_code']").val(treeNode.id);
 	$("#" + treeId).parents("td").find("[name$='" + treeId + "_value'],[id$='" + treeId + "_value']").val(treeNode.id);
 	$("#" + treeId).parents("td").find("[name$='" + treeId + "_name'],[id$='" + treeId + "_name']").val(str);
}
</script>	